﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using WindowsGame1.Windows;

namespace WindowsGame1.Interface
{
    public static class StaticGUi
    {
        public static TimeAndStart Time { set; get; }
        public static EndGame End { set; get; }
        public static SpriteFont Font { set; get; }
        public static SpriteFont LittleFont { set; get; }
        public static Game g { set; get; }
        public static int Width { set; get; }
        public static int Height { set; get; }

        static StaticGUi()
        {
            Time = new TimeAndStart();
            End = new EndGame();
        }

        public static void LoadContent(ContentManager content)
        {
            Font = content.Load<SpriteFont>("font");
            LittleFont = content.Load<SpriteFont>("littleFont");

            End.LoadContent(content);
        }

        public static void Update(GameTime gameTime)
        {
            Time.Update(gameTime);
            End.Update(gameTime);
        }

        public static void Render(SpriteBatch renderTarget)
        {
            Time.Render(renderTarget);
            End.Render(renderTarget);
        }
    }
}
